@councilbox/councilbox-ui 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-index.js +32 -0
- package/dist/components/1.Introduction.stories.mdx +2 -2
- package/dist/components/2.Changelog.stories.mdx +30 -6
- package/dist/components/3.Guide.stories.mdx +179 -0
- package/dist/components/ButtonBasic/ButtonBasic.js +3 -3
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +46 -12
- package/dist/components/DropDown/DropDown.js +9 -1
- package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +109 -0
- package/dist/components/EnhancedTable/EnhancedTable.css +0 -0
- package/dist/components/EnhancedTable/EnhancedTable.js +280 -0
- package/dist/components/EnhancedTable/EnhancedTable.stories.js +39 -0
- package/dist/components/Header/Header.js +11 -11
- package/dist/components/Header/header.css +3 -3
- package/dist/components/IconButtonSquare/IconButtonSquare.css +1 -1
- package/dist/components/InputText/InputText.js +7 -4
- package/dist/components/InputText/InputText.stories.js +3 -1
- package/dist/components/LoadingSection/LoadingSection.css +7 -0
- package/dist/components/LoadingSection/LoadingSection.js +36 -0
- package/dist/components/LoadingSection/LoadingSection.stories.js +34 -0
- package/dist/components/MenuItem/DesignMenuItem.stories.js +67 -0
- package/dist/components/MenuItem/MenuItem.css +57 -0
- package/dist/components/MenuItem/MenuItem.js +132 -0
- package/dist/components/MenuItem/MenuItem.stories.js +48 -0
- package/dist/components/MenuLateralRight/MenuLateralRight.js +6 -11
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +20 -0
- package/dist/components/PaginationFooter/PaginationFooter.css +0 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +271 -0
- package/dist/components/PaginationFooter/PaginationFooter.stories.js +45 -0
- package/dist/components/Table/DesignTable.stories.js +22 -0
- package/dist/components/Table/Table.css +0 -0
- package/dist/components/Table/Table.js +166 -0
- package/dist/components/Table/Table.stories.js +49 -0
- package/package.json +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TableSortLabel = exports.TableRow = exports.TableHead = exports.TableContainer = exports.TableCell = exports.TableBody = exports.Table = void 0;
|
|
7
|
+
|
|
8
|
+
var _Table = _interopRequireDefault(require("@mui/material/Table"));
|
|
9
|
+
|
|
10
|
+
var _TableBody = _interopRequireDefault(require("@mui/material/TableBody"));
|
|
11
|
+
|
|
12
|
+
var _TableCell = _interopRequireDefault(require("@mui/material/TableCell"));
|
|
13
|
+
|
|
14
|
+
var _TableContainer = _interopRequireDefault(require("@mui/material/TableContainer"));
|
|
15
|
+
|
|
16
|
+
var _TableHead = _interopRequireDefault(require("@mui/material/TableHead"));
|
|
17
|
+
|
|
18
|
+
var _TableRow = _interopRequireDefault(require("@mui/material/TableRow"));
|
|
19
|
+
|
|
20
|
+
var _TableSortLabel = _interopRequireDefault(require("@mui/material/TableSortLabel"));
|
|
21
|
+
|
|
22
|
+
var _excluded = ["children", "component", "hover", "selected", "onClick", "className"],
|
|
23
|
+
_excluded2 = ["children", "component"],
|
|
24
|
+
_excluded3 = ["children", "component"],
|
|
25
|
+
_excluded4 = ["children", "active", "direction", "onClick", "hideSortIcon", "IconComponent"],
|
|
26
|
+
_excluded5 = ["children", "component", "padding", "scope", "size", "sortDirection", "variant", "align", "style", "sx"],
|
|
27
|
+
_excluded6 = ["children", "component"];
|
|
28
|
+
|
|
29
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
|
+
|
|
31
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
|
+
|
|
33
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
34
|
+
|
|
35
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
36
|
+
|
|
37
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
38
|
+
|
|
39
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
40
|
+
|
|
41
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
42
|
+
|
|
43
|
+
var Table = function Table(_ref) {
|
|
44
|
+
var props = _extends({}, _ref);
|
|
45
|
+
|
|
46
|
+
return /*#__PURE__*/React.createElement(_Table.default, props);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.Table = Table;
|
|
50
|
+
Table.displayName = "Table";
|
|
51
|
+
|
|
52
|
+
var TableRow = function TableRow(_ref2) {
|
|
53
|
+
var children = _ref2.children,
|
|
54
|
+
component = _ref2.component,
|
|
55
|
+
hover = _ref2.hover,
|
|
56
|
+
selected = _ref2.selected,
|
|
57
|
+
onClick = _ref2.onClick,
|
|
58
|
+
className = _ref2.className,
|
|
59
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
60
|
+
|
|
61
|
+
return /*#__PURE__*/React.createElement(_TableRow.default, _extends({
|
|
62
|
+
className: className,
|
|
63
|
+
component: component,
|
|
64
|
+
hover: hover,
|
|
65
|
+
selected: selected,
|
|
66
|
+
onClick: onClick
|
|
67
|
+
}, props), children);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports.TableRow = TableRow;
|
|
71
|
+
TableRow.displayName = "TableRow";
|
|
72
|
+
|
|
73
|
+
var TableBody = function TableBody(_ref3) {
|
|
74
|
+
var children = _ref3.children,
|
|
75
|
+
component = _ref3.component,
|
|
76
|
+
props = _objectWithoutProperties(_ref3, _excluded2);
|
|
77
|
+
|
|
78
|
+
return /*#__PURE__*/React.createElement(_TableBody.default, _extends({
|
|
79
|
+
component: component
|
|
80
|
+
}, props), children);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
exports.TableBody = TableBody;
|
|
84
|
+
TableBody.displayName = "TableBody";
|
|
85
|
+
|
|
86
|
+
var TableHead = function TableHead(_ref4) {
|
|
87
|
+
var children = _ref4.children,
|
|
88
|
+
component = _ref4.component,
|
|
89
|
+
props = _objectWithoutProperties(_ref4, _excluded3);
|
|
90
|
+
|
|
91
|
+
return /*#__PURE__*/React.createElement(_TableHead.default, _extends({
|
|
92
|
+
component: component
|
|
93
|
+
}, props), children);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
exports.TableHead = TableHead;
|
|
97
|
+
TableHead.displayName = "TableHead";
|
|
98
|
+
|
|
99
|
+
var TableSortLabel = function TableSortLabel(_ref5) {
|
|
100
|
+
var children = _ref5.children,
|
|
101
|
+
active = _ref5.active,
|
|
102
|
+
direction = _ref5.direction,
|
|
103
|
+
onClick = _ref5.onClick,
|
|
104
|
+
hideSortIcon = _ref5.hideSortIcon,
|
|
105
|
+
IconComponent = _ref5.IconComponent,
|
|
106
|
+
props = _objectWithoutProperties(_ref5, _excluded4);
|
|
107
|
+
|
|
108
|
+
return /*#__PURE__*/React.createElement(_TableSortLabel.default, _extends({
|
|
109
|
+
onClick: onClick,
|
|
110
|
+
active: active,
|
|
111
|
+
direction: direction,
|
|
112
|
+
hideSortIcon: hideSortIcon,
|
|
113
|
+
IconComponent: IconComponent
|
|
114
|
+
}, props), children);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
exports.TableSortLabel = TableSortLabel;
|
|
118
|
+
TableSortLabel.displayName = "TableSortLabel";
|
|
119
|
+
|
|
120
|
+
var TableCell = function TableCell(_ref6) {
|
|
121
|
+
var children = _ref6.children,
|
|
122
|
+
component = _ref6.component,
|
|
123
|
+
padding = _ref6.padding,
|
|
124
|
+
scope = _ref6.scope,
|
|
125
|
+
size = _ref6.size,
|
|
126
|
+
sortDirection = _ref6.sortDirection,
|
|
127
|
+
variant = _ref6.variant,
|
|
128
|
+
align = _ref6.align,
|
|
129
|
+
_ref6$style = _ref6.style,
|
|
130
|
+
style = _ref6$style === void 0 ? {} : _ref6$style,
|
|
131
|
+
sx = _ref6.sx,
|
|
132
|
+
props = _objectWithoutProperties(_ref6, _excluded5);
|
|
133
|
+
|
|
134
|
+
return /*#__PURE__*/React.createElement(_TableCell.default, _extends({
|
|
135
|
+
component: component,
|
|
136
|
+
padding: padding,
|
|
137
|
+
scope: scope,
|
|
138
|
+
size: size,
|
|
139
|
+
sortDirection: sortDirection,
|
|
140
|
+
variant: variant,
|
|
141
|
+
align: align,
|
|
142
|
+
sx: _objectSpread({
|
|
143
|
+
padding: '1rem',
|
|
144
|
+
color: 'var(--gray3)'
|
|
145
|
+
}, sx),
|
|
146
|
+
style: _objectSpread({
|
|
147
|
+
zIndex: '10'
|
|
148
|
+
}, style)
|
|
149
|
+
}, props), children);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
exports.TableCell = TableCell;
|
|
153
|
+
TableCell.displayName = "TableCell";
|
|
154
|
+
|
|
155
|
+
var TableContainer = function TableContainer(_ref7) {
|
|
156
|
+
var children = _ref7.children,
|
|
157
|
+
component = _ref7.component,
|
|
158
|
+
props = _objectWithoutProperties(_ref7, _excluded6);
|
|
159
|
+
|
|
160
|
+
return /*#__PURE__*/React.createElement(_TableContainer.default, _extends({
|
|
161
|
+
component: component
|
|
162
|
+
}, props), children);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
exports.TableContainer = TableContainer;
|
|
166
|
+
TableContainer.displayName = "TableContainer";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DesignTemplateTable = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _Table = _interopRequireDefault(require("./Table"));
|
|
11
|
+
|
|
12
|
+
var _DesignTable = _interopRequireDefault(require("./DesignTable.stories"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: 'Components/Table',
|
|
18
|
+
component: _Table.default,
|
|
19
|
+
argTypes: {
|
|
20
|
+
text: {
|
|
21
|
+
control: {
|
|
22
|
+
type: 'text'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
label: {
|
|
26
|
+
control: {
|
|
27
|
+
type: 'text'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}; // const Template = args => <Table {...args} />;
|
|
32
|
+
|
|
33
|
+
exports.default = _default;
|
|
34
|
+
|
|
35
|
+
var TemplateTable = function TemplateTable(args) {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_DesignTable.default, args);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
TemplateTable.displayName = "TemplateTable";
|
|
40
|
+
// export const Default = Template.bind({});
|
|
41
|
+
// Default.args = {
|
|
42
|
+
// };
|
|
43
|
+
var DesignTemplateTable = TemplateTable.bind({});
|
|
44
|
+
exports.DesignTemplateTable = DesignTemplateTable;
|
|
45
|
+
DesignTemplateTable.parameters = {
|
|
46
|
+
controls: {
|
|
47
|
+
disable: true
|
|
48
|
+
}
|
|
49
|
+
};
|