@pingux/astro 2.130.4-alpha.0 → 2.131.0-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.
Files changed (64) hide show
  1. package/lib/cjs/components/GridList/GridList.d.ts +3 -0
  2. package/lib/cjs/components/GridList/GridList.js +56 -0
  3. package/lib/cjs/components/GridList/GridList.mdx +68 -0
  4. package/lib/cjs/components/GridList/GridList.stories.d.ts +185 -0
  5. package/lib/cjs/components/GridList/GridList.stories.js +137 -0
  6. package/lib/cjs/components/GridList/GridList.styles.d.ts +18 -0
  7. package/lib/cjs/components/GridList/GridList.styles.js +27 -0
  8. package/lib/cjs/components/GridList/GridList.test.d.ts +1 -0
  9. package/lib/cjs/components/GridList/GridList.test.js +153 -0
  10. package/lib/cjs/components/GridList/GridListRow.d.ts +4 -0
  11. package/lib/cjs/components/GridList/GridListRow.js +88 -0
  12. package/lib/cjs/components/GridList/gridListAttributes.d.ts +170 -0
  13. package/lib/cjs/components/GridList/gridListAttributes.js +178 -0
  14. package/lib/cjs/components/GridList/index.d.ts +2 -0
  15. package/lib/cjs/components/GridList/index.js +21 -0
  16. package/lib/cjs/components/TreeView/InsertionIndicator.js +19 -14
  17. package/lib/cjs/components/TreeView/TreeView.styles.js +2 -1
  18. package/lib/cjs/components/TreeView/index.js +7 -0
  19. package/lib/cjs/hooks/index.d.ts +2 -0
  20. package/lib/cjs/hooks/index.js +14 -0
  21. package/lib/cjs/hooks/useGridList/index.d.ts +1 -0
  22. package/lib/cjs/hooks/useGridList/index.js +14 -0
  23. package/lib/cjs/hooks/useGridList/useGridList.d.ts +18 -0
  24. package/lib/cjs/hooks/useGridList/useGridList.js +175 -0
  25. package/lib/cjs/hooks/useGridListItem/index.d.ts +1 -0
  26. package/lib/cjs/hooks/useGridListItem/index.js +14 -0
  27. package/lib/cjs/hooks/useGridListItem/useGridListItem.d.ts +308 -0
  28. package/lib/cjs/hooks/useGridListItem/useGridListItem.js +67 -0
  29. package/lib/cjs/hooks/useReorderableCollection/index.d.ts +1 -0
  30. package/lib/cjs/hooks/useReorderableCollection/index.js +14 -0
  31. package/lib/cjs/hooks/useReorderableCollection/useReorderableCollection.d.ts +9 -0
  32. package/lib/cjs/hooks/useReorderableCollection/useReorderableCollection.js +99 -0
  33. package/lib/cjs/index.d.ts +1 -0
  34. package/lib/cjs/index.js +15 -0
  35. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  36. package/lib/cjs/styles/variants/variants.js +2 -0
  37. package/lib/cjs/types/dnd.d.ts +66 -0
  38. package/lib/cjs/types/dnd.js +6 -0
  39. package/lib/cjs/types/gridList.d.ts +59 -0
  40. package/lib/cjs/types/gridList.js +6 -0
  41. package/lib/components/GridList/GridList.js +44 -0
  42. package/lib/components/GridList/GridList.mdx +68 -0
  43. package/lib/components/GridList/GridList.stories.js +124 -0
  44. package/lib/components/GridList/GridList.styles.js +19 -0
  45. package/lib/components/GridList/GridList.test.js +149 -0
  46. package/lib/components/GridList/GridListRow.js +74 -0
  47. package/lib/components/GridList/gridListAttributes.js +170 -0
  48. package/lib/components/GridList/index.js +2 -0
  49. package/lib/components/TreeView/InsertionIndicator.js +19 -14
  50. package/lib/components/TreeView/TreeView.styles.js +2 -1
  51. package/lib/components/TreeView/index.js +1 -0
  52. package/lib/hooks/index.js +2 -0
  53. package/lib/hooks/useGridList/index.js +1 -0
  54. package/lib/hooks/useGridList/useGridList.js +166 -0
  55. package/lib/hooks/useGridListItem/index.js +1 -0
  56. package/lib/hooks/useGridListItem/useGridListItem.js +59 -0
  57. package/lib/hooks/useReorderableCollection/index.js +1 -0
  58. package/lib/hooks/useReorderableCollection/useReorderableCollection.js +91 -0
  59. package/lib/index.js +1 -0
  60. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  61. package/lib/styles/variants/variants.js +2 -0
  62. package/lib/types/dnd.js +1 -0
  63. package/lib/types/gridList.js +1 -0
  64. package/package.json +3 -2
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const GridList: (props: any) => React.JSX.Element;
3
+ export default GridList;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
5
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
6
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
7
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
8
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
9
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
10
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
11
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
12
+ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
13
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
14
+ _Object$defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ exports["default"] = void 0;
18
+ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
19
+ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
20
+ var _from = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/from"));
21
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
22
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
23
+ var _react = _interopRequireWildcard(require("react"));
24
+ var _reactAria = require("react-aria");
25
+ var _useGridList2 = _interopRequireDefault(require("../../hooks/useGridList"));
26
+ var _index = require("../../index");
27
+ var _GridListRow = _interopRequireDefault(require("./GridListRow"));
28
+ var _react2 = require("@emotion/react");
29
+ 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
+ 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; }
31
+ 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; }
32
+ 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; }
33
+ var GridList = function GridList(props) {
34
+ var _context, _context2;
35
+ var ref = (0, _react.useRef)(null);
36
+ var _useGridList = (0, _useGridList2["default"])(_objectSpread(_objectSpread({}, props), {}, {
37
+ ref: ref
38
+ })),
39
+ collectionProps = _useGridList.collectionProps,
40
+ gridListItemProps = _useGridList.gridListItemProps,
41
+ gridProps = _useGridList.gridProps,
42
+ state = _useGridList.state;
43
+ return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({}, (0, _reactAria.mergeProps)(gridProps, collectionProps), {
44
+ ref: ref,
45
+ className: "list",
46
+ variant: "gridList.container",
47
+ gap: "sm"
48
+ }), (0, _map["default"])(_context = (0, _concat["default"])(_context2 = []).call(_context2, (0, _from["default"])(state.collection))).call(_context, function (item) {
49
+ return (0, _react2.jsx)(_GridListRow["default"], (0, _extends2["default"])({
50
+ key: item.key,
51
+ item: item
52
+ }, gridListItemProps));
53
+ }));
54
+ };
55
+ var _default = GridList;
56
+ exports["default"] = _default;
@@ -0,0 +1,68 @@
1
+ import { Meta } from '@storybook/addon-docs';
2
+
3
+ <Meta title="Components/GridList" />
4
+
5
+ # GridList
6
+
7
+ The `GridList` component is used to display a list of items in a grid-like structure. It supports features like reordering, keyboard navigation, and drag-and-drop functionality.
8
+
9
+ This component should:
10
+ - Be used to display items in a structured grid format.
11
+ - Support reordering and drag-and-drop functionality for enhanced interactivity.
12
+
13
+ It shouldn’t be used for simple lists that do not require grid-like behavior or advanced interactions.
14
+
15
+ ### Required Components
16
+
17
+ This component requires [Item].
18
+
19
+ ---
20
+
21
+ ## Accessibility
22
+
23
+ This component adheres to the [WAI-ARIA Grid](https://www.w3.org/WAI/ARIA/apg/patterns/grid/) accessibility guidelines.
24
+
25
+ ### Keyboard Navigation
26
+
27
+ These keys provide additional functionality to the component:
28
+
29
+ | Key Combination | Functionality |
30
+ | --------------- | ---------------------------------------------------------------------------------------------------------------- |
31
+ | `Tab` | Moves focus to the next focusable element, within the row. (keyboardNavigationBehavior="tab") |
32
+ | `Shift + Tab` | Moves focus to the previous focusable element, within the row. (keyboardNavigationBehavior="tab") |
33
+ | `Arrow Keys` | Navigates between items in the grid. (Up/Down in all modes, Left/Right in keyboardNavigationBehavior="arrow") |
34
+ | `Home` | Moves focus to the first row in the grid. |
35
+ | `End` | Moves focus to the last row in the grid. |
36
+
37
+ ### Screen Readers
38
+
39
+ This component uses the following attributes to assist screen readers:
40
+ - The **`role="grid"`** attribute is used to indicate the grid structure.
41
+ - The **`aria-label`** attribute provides an accessible name for the grid.
42
+ - The **`role="row"`** attribute is used to indicate the row structure.
43
+ - The **`role="gridcell"`** attribute is used to indicate the cell structure.
44
+ - The **`aria-selected`** attribute indicates whether an item is selected.
45
+ - The **`draggable`** attribute indicates whether an item is draggable.
46
+
47
+ ---
48
+
49
+ ## Examples
50
+
51
+ ### Default GridList
52
+
53
+ ```tsx
54
+ import { GridList, Item } from '@pingux/astro';
55
+
56
+ const items = [
57
+ { name: 'Item 1', key: 'item1' },
58
+ { name: 'Item 2', key: 'item2' },
59
+ { name: 'Item 3', key: 'item3' },
60
+ ];
61
+
62
+ <GridList items={items}>
63
+ {item => (
64
+ <Item key={item.key} textValue={item.name}>
65
+ {item.name}
66
+ </Item>
67
+ )}
68
+ </GridList>;
@@ -0,0 +1,185 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: any) => React.JSX.Element;
5
+ argTypes: {
6
+ isReorderable: {
7
+ description: string;
8
+ control: {
9
+ type: string;
10
+ };
11
+ };
12
+ selectedKeys: {
13
+ description: string;
14
+ control: {
15
+ disable: boolean;
16
+ };
17
+ };
18
+ disabledKeys: {
19
+ description: string;
20
+ control: {
21
+ type: string;
22
+ };
23
+ };
24
+ defaultSelectedKeys: {
25
+ description: string;
26
+ control: {
27
+ disable: boolean;
28
+ };
29
+ };
30
+ onSelectionChange: {
31
+ description: string;
32
+ control: {
33
+ disable: boolean;
34
+ };
35
+ };
36
+ allowDuplicateSelectionEvents: {
37
+ description: string;
38
+ control: {
39
+ type: string;
40
+ };
41
+ };
42
+ autoFocus: {
43
+ description: string;
44
+ control: {
45
+ type: string;
46
+ };
47
+ };
48
+ children: {
49
+ description: string;
50
+ control: {
51
+ disable: boolean;
52
+ };
53
+ };
54
+ collection: {
55
+ description: string;
56
+ control: {
57
+ disable: boolean;
58
+ };
59
+ };
60
+ disabledBehavior: {
61
+ description: string;
62
+ control: {
63
+ type: string;
64
+ options: string[];
65
+ };
66
+ };
67
+ disallowEmptySelection: {
68
+ description: string;
69
+ control: {
70
+ type: string;
71
+ };
72
+ };
73
+ disallowTypeAhead: {
74
+ description: string;
75
+ control: {
76
+ type: string;
77
+ };
78
+ };
79
+ escapeKeyBehavior: {
80
+ description: string;
81
+ control: {
82
+ type: string;
83
+ options: string[];
84
+ };
85
+ };
86
+ filter: {
87
+ description: string;
88
+ control: {
89
+ disable: boolean;
90
+ };
91
+ };
92
+ getKey: {
93
+ description: string;
94
+ control: {
95
+ disable: boolean;
96
+ };
97
+ };
98
+ initialFilterText: {
99
+ description: string;
100
+ control: {
101
+ type: string;
102
+ };
103
+ };
104
+ initialSelectedKeys: {
105
+ description: string;
106
+ control: {
107
+ disable: boolean;
108
+ };
109
+ };
110
+ items: {
111
+ description: string;
112
+ control: {
113
+ disable: boolean;
114
+ };
115
+ };
116
+ keyboardDelegate: {
117
+ description: string;
118
+ control: {
119
+ disable: boolean;
120
+ };
121
+ };
122
+ keyboardNavigationBehavior: {
123
+ description: string;
124
+ control: {
125
+ type: string;
126
+ options: string[];
127
+ };
128
+ };
129
+ linkBehavior: {
130
+ description: string;
131
+ control: {
132
+ type: string;
133
+ options: string[];
134
+ };
135
+ };
136
+ onAction: {
137
+ description: string;
138
+ control: {
139
+ disable: boolean;
140
+ };
141
+ };
142
+ ref: {
143
+ description: string;
144
+ control: {
145
+ disable: boolean;
146
+ };
147
+ };
148
+ selectionBehavior: {
149
+ description: string;
150
+ control: {
151
+ type: string;
152
+ options: string[];
153
+ };
154
+ };
155
+ selectionMode: {
156
+ description: string;
157
+ control: {
158
+ type: string;
159
+ options: string[];
160
+ };
161
+ };
162
+ shouldFocusWrap: {
163
+ description: string;
164
+ control: {
165
+ type: string;
166
+ };
167
+ };
168
+ shouldSelectOnPressUp: {
169
+ description: string;
170
+ control: {
171
+ type: string;
172
+ };
173
+ };
174
+ };
175
+ parameters: {
176
+ docs: {
177
+ source: {
178
+ type: string;
179
+ };
180
+ page: () => React.JSX.Element;
181
+ };
182
+ };
183
+ };
184
+ export default _default;
185
+ export declare const Default: (args: any) => React.JSX.Element;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
5
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
6
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
7
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
8
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
9
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
10
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
11
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
12
+ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
13
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
14
+ _Object$defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ exports["default"] = exports.Default = void 0;
18
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
19
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
20
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
21
+ var _react = _interopRequireWildcard(require("react"));
22
+ var _reactStately = require("react-stately");
23
+ var _MinusIcon = _interopRequireDefault(require("@pingux/mdi-react/MinusIcon"));
24
+ var _PlusIcon = _interopRequireDefault(require("@pingux/mdi-react/PlusIcon"));
25
+ var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
26
+ var _index = require("../../index");
27
+ var _GridList = _interopRequireDefault(require("./GridList.mdx"));
28
+ var _gridListAttributes = require("./gridListAttributes");
29
+ var _react2 = require("@emotion/react");
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); }
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; }
32
+ 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; }
33
+ 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; }
34
+ var _default = {
35
+ title: 'Components/GridList',
36
+ component: _index.GridList,
37
+ argTypes: _objectSpread({}, _gridListAttributes.gridListArgTypes),
38
+ parameters: {
39
+ docs: {
40
+ source: {
41
+ type: 'code'
42
+ },
43
+ page: function page() {
44
+ return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_GridList["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
45
+ }
46
+ }
47
+ }
48
+ };
49
+ exports["default"] = _default;
50
+ var items = [{
51
+ name: 'rhino',
52
+ key: 'rhino'
53
+ }, {
54
+ name: 'lion',
55
+ key: 'lion'
56
+ }, {
57
+ name: 'zebra',
58
+ key: 'zebra'
59
+ }];
60
+ var ExampleComponent = function ExampleComponent(_ref) {
61
+ var label = _ref.label;
62
+ var ref = (0, _react.useRef)(null);
63
+ var _useState = (0, _react.useState)(false),
64
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
65
+ isOpen = _useState2[0],
66
+ setIsOpen = _useState2[1];
67
+ return (0, _react2.jsx)(_index.Box, {
68
+ isRow: true,
69
+ sx: {
70
+ alignItems: 'center'
71
+ },
72
+ gap: "sm"
73
+ }, (0, _react2.jsx)(_index.TextField, {
74
+ "aria-label": label,
75
+ ref: ref,
76
+ defaultValue: label,
77
+ "data-testid": "".concat(label, "-text-field")
78
+ }), (0, _react2.jsx)(_index.Box, {
79
+ isRow: true,
80
+ sx: {
81
+ alignItems: 'center'
82
+ },
83
+ gap: "md"
84
+ }, (0, _react2.jsx)(_index.IconButton, {
85
+ "aria-label": "delete row"
86
+ }, (0, _react2.jsx)(_index.Icon, {
87
+ icon: _MinusIcon["default"],
88
+ title: {
89
+ name: 'delete icon'
90
+ }
91
+ })), (0, _react2.jsx)(_index.IconButton, {
92
+ "aria-label": "add row"
93
+ }, (0, _react2.jsx)(_index.Icon, {
94
+ icon: _PlusIcon["default"],
95
+ title: {
96
+ name: 'add icon'
97
+ }
98
+ })), (0, _react2.jsx)(_index.OverlayProvider, null, (0, _react2.jsx)(_index.PopoverMenu, {
99
+ isOpen: isOpen,
100
+ onOpenChange: setIsOpen
101
+ }, (0, _react2.jsx)(_index.IconButton, {
102
+ "aria-label": "more options",
103
+ variant: "inverted"
104
+ }, (0, _react2.jsx)(_index.Icon, {
105
+ icon: _MinusIcon["default"],
106
+ size: "md",
107
+ title: {
108
+ name: 'Dots Vertical Icon'
109
+ }
110
+ })), (0, _react2.jsx)(_index.Menu, null, (0, _react2.jsx)(_reactStately.Item, {
111
+ key: "edit"
112
+ }, "Edit"), (0, _react2.jsx)(_reactStately.Item, {
113
+ key: "duplicate"
114
+ }, "Duplicate"), (0, _react2.jsx)(_reactStately.Item, {
115
+ key: "delete",
116
+ textValue: "delete"
117
+ }, (0, _react2.jsx)(_index.Text, {
118
+ color: "critical.bright"
119
+ }, "Delete")))))));
120
+ };
121
+ var Default = function Default(args) {
122
+ return (0, _react2.jsx)(_index.GridList, (0, _extends2["default"])({
123
+ items: items,
124
+ isReorderable: true,
125
+ keyboardNavigationBehavior: "tab"
126
+ }, args), function (item) {
127
+ return (0, _react2.jsx)(_reactStately.Item, {
128
+ textValue: item.name,
129
+ key: item.name,
130
+ "data-id": item.name
131
+ }, (0, _react2.jsx)(ExampleComponent, {
132
+ label: item.name,
133
+ key: item.name
134
+ }));
135
+ });
136
+ };
137
+ exports.Default = Default;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ container: {
3
+ '&.is-focused': {
4
+ outline: string;
5
+ };
6
+ ':focus': {
7
+ outline: string;
8
+ };
9
+ };
10
+ rowContainer: {
11
+ alignItems: string;
12
+ alignContent: string;
13
+ '&.is-dragging': {
14
+ opacity: number;
15
+ };
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var container = {
9
+ '&.is-focused': {
10
+ outline: 'none !important'
11
+ },
12
+ ':focus': {
13
+ outline: 'none'
14
+ }
15
+ };
16
+ var rowContainer = {
17
+ alignItems: 'center',
18
+ alignContent: 'center',
19
+ '&.is-dragging': {
20
+ opacity: 0.4
21
+ }
22
+ };
23
+ var _default = {
24
+ container: container,
25
+ rowContainer: rowContainer
26
+ };
27
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ export {};